<script setup>
	import {
		onLaunch,
		onShow,
		onHide
	} from '@dcloudio/uni-app'
	import {
		useDictionaryStore,
		useUserStore
	} from '@/store/index.js'

	// 字典仓库
	const dictionaryStore = useDictionaryStore()
	// 用户仓库
	const userStore = useUserStore()

	onLaunch(() => {
		console.log('App Launch')

		// 获取字典列表
		dictionaryStore.getDictionaryList()
		// 微信登录
		// if (!userStore.userId) {
		// 	uni.reLaunch({
		// 		url:'/pages/login/index'
		// 	})
		// } else {
		// 	uni.switchTab({
		// 		url:'/pages/index/index'
		// 	})
		// }
	})

	onShow(() => {
		console.log('App Show')

		
	})

	onHide(() => {
		console.log('App Hide')
	})
</script>

<style>
	/*每个页面公共css */

	image {
		height: auto;
	}
</style>